<template>
  <basic-container>
    <avue-tabs :option="tabsOption" @change="handleChange"></avue-tabs>
    <template v-if="tabsType.prop === '0'">
      <leftTab ref="leftTab" ></leftTab>
    </template>
    <template v-else-if="tabsType.prop === '1'">
      <rightTab ref="rightTab" ></rightTab>
    </template>
  </basic-container>
</template>

<script>
import leftTab from "./components/leftTab";
import rightTab from "./components/rightTab";

export default {
  components: {
    leftTab, rightTab
  },
  data() {
    return {
      tabsType: {},
      tabsOption: {
        column: [
          {
            label: "页面访问记录",
            prop: "0"
          },
          {
            label: "服务商数据统计",
            prop: "1"
          }
        ]
      }
    };
  },
  computed: {
  },
  created() {
    this.tabsType = this.tabsOption.column[0];
  },
  methods: {
    handleChange(column) {
      this.tabsType = column;
    }
  },
};
</script>